home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ MSO Folders 1.xpl < prev    next >
Text File  |  1999-06-14  |  2KB  |  65 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="4"
  3. "COUNT"="2"
  4. "UIPATH"="System\File System\Data Folders"
  5. "NAME"="Office 97 Folders"
  6. "VERSION"="1.1"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Word Clipart"
  9. "TEXT 2"="Excel Data"
  10. "DESCRIPTION 1"="You can alter the location of different MS Office folders here."
  11. "DESCRIPTION 2"="Please exit all Office programs before changing this settings."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
  15.  
  16. sPath="HKCU\Software\Microsoft\Office\8.0\"
  17.  
  18. sWWDClipart="HKCU\Software\Microsoft\Office\8.0\Word\Options\PICTURE-PATH"
  19. sXLData="HKCU\Software\Microsoft\Office\8.0\Excel\Microsoft Excel\DefaultPath"
  20. Sub Plugin_Initialize 
  21.  if RegPathExists(sPath) then
  22.   s=RegReadValue(sWWDClipart)
  23.   SetUIElement 1,s
  24.  
  25.   s=RegReadValue(sXLData)
  26.   SetUIElement 2,s
  27.  else
  28.   Disable
  29.  end if
  30. End Sub
  31.  
  32. Sub Plugin_CheckData(ElementIndex)
  33. End Sub
  34.  
  35. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  36.  s=GetUIElement(1)
  37.  if len(s)=0 then
  38.   Call MsgError("Unable to update information - Path for Word Cliparts is not valid")
  39.  else
  40.  
  41.   if Right(s,1)="\" then
  42.    s=left(s,len(s)-1)
  43.   end if
  44.   Call RegWriteValue(sWWDClipart,s,1)
  45.  
  46.  end if
  47.  
  48.  
  49.  s=GetUIElement(2)
  50.  if len(s)=0 then
  51.   Call MsgError("Unable to update information - Path for Excel data files is not valid")
  52.  else
  53.  
  54.   if Right(s,1)="\" then
  55.    s=left(s,len(s)-1)
  56.   end if
  57.   Call RegWriteValue(sXLData,s,1)
  58.  
  59.  end if
  60.  
  61. End Sub
  62.  
  63. Sub Plugin_Terminate 
  64. End Sub
  65.